﻿using FastLimitFlow;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            LimitFactory f = new LimitFactory();
            var t = f.GetRateLimitController(RateLimitEnum.LeakageBucket, 50, 2);
            //TokenBucket t = new TokenBucket(50,50);
            for (int i = 0; i < 100; i++)
            {
                Console.WriteLine(t.IsHaveToken());
            }
            t.Dispose();
            Console.ReadKey();
        }
    }
}
